package com.ruandi.test14;

import java.util.Scanner;

public class Student {
    //属性
    private String id;
    private String name;
    private String sex;
    private double tall;
    private int age;

    //构造方法
    public Student() {
    }
    public Student(String id, String name, String sex, double tall, int age) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.tall = tall;
        this.age = age;
    }

    //getter and setter
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public double getTall() {
        return tall;
    }
    public void setTall(double tall) {
        this.tall = tall;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }

    //行为
    public void show(){
        System.out.println("学员编号："+getId()+",学员姓名："+getName()+",学员性别："+getSex()+"，学员身高："+getTall()+",学员年龄："+getAge());
    }

}
